﻿<Window x:Class="LockCrypt.WinWorkerLog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:lex="http://schemas.root-project.org/xaml/presentation"
    Title="Loading..." WindowStartupLocation="CenterOwner" Loaded="Window_Loaded"
    Height="400" Width="500" MaxHeight="400" MaxWidth="500" 
    Style="{StaticResource {x:Type Window}}" Icon="/LockCrypt;component/Resources/LockCrypt.ico">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseWindow" />
    </Window.CommandBindings>
    <DockPanel LastChildFill="True">
        <Label DockPanel.Dock="Top" Content="{lex:LocText LockCrypt.Core:Strings:Progress}"/>
        <ProgressBar x:Name="prgStatus" DockPanel.Dock="Bottom" IsIndeterminate="True" Height="20"  />
        <StackPanel DockPanel.Dock="Bottom"  Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
            <Button x:Name="btnClose" MinWidth="70" Command="ApplicationCommands.Close" IsDefault="True" Content="{lex:LocText LockCrypt.Core:Strings:Close}"/>
        </StackPanel>
        <RichTextBox x:Name="rtbProgress" DockPanel.Dock="Top" IsReadOnly="True" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Visible">
            <FlowDocument>
                <Paragraph>
                    <Span x:Name="txtProgress"></Span>
                </Paragraph>
            </FlowDocument>
        </RichTextBox>
    </DockPanel>
</Window>
